1. Using modelflow with World Bank models#

The Modelflow python package has been developed to solve a wide range of models, see the modelflow github web site for working examples of the Solow Model, the United States’ Federal REserve FR/USB model and others.

The package has been substantially expanded to include special features that enable it to work with World Bank models originally developed in EViews and designed to use the EViews Model Object for simulation.

This chapter illustrates how to access these models, how to load them into a modelflow anaconda environment on your computer, and how to perform a variety of simulations.

1.1. Accessing a World Bank model#

At this time several World bank macrostructural models are available to download and use with modelflow. These include a macrostructural model for:

  • Indonesia

  • Nepal

  • Croatia

  • Iraq

  • Kenya

  • Bolivia

Each of these models has been developed as part of the outreach work of the World Bank. The basic modelling framework of each of these models is outlined in Burns et al. [2019] with specific extensions reflecting features of the individual country modelled.

This book uses as an example a climate-aware model (MFMod-CC) for Pakistan developed in 2020 and described in Burns et al. [2021].

The World Bank models are distributed in the pcim file format of the modelflow package and can be downloaded by right clicking on the links above. The Pakistan model can be downloaded here by right clicking on the above link and selecting Save Link as and placing the file on a directory accessible by your modelflow installation.

Comment

\(\color{green}{\text{Ib can't we have a package WorldBankMFModModels that one could import?}}\) \(\color{green}{\text{I seem to see this for other packages that have geographic data on countries or their population.}}\)

\(\color{green}{\text{I imagining something like:}}\) \(\color{red}{\text{from worldbankMFModModels import pak}}\)